package com.daxia.ogmall.dto;

import java.util.List;
import java.util.Vector;

/**
 * 前台展示时的规格分类数据
 * @author 雄
 */
public class SpecShow {
	private String showName;   //显示名称
	private List<Long> ids;    //涉及到的规格id集合
	private boolean status;    //当前的属性状态 true:显示 false:disbled
	private boolean specDefault;    //是否默认显示
	
	public String getIdsInfo() {   //根据规格id组成一个
		StringBuffer buffer = new StringBuffer();
		for(Long theId:ids) {
			buffer.append(theId).append("|");
		}
		return buffer.toString();
	}
	
	/*  Gatters and Setters  */
	public String getShowName() {
		return showName;
	}
	public void setShowName(String showName) {
		this.showName = showName;
	}
	public List<Long> getIds() {
		if(this.ids == null || this.ids.size() == 0) {
			this.ids = new Vector<Long>();
		}
		return ids;
	}
	public void setIds(List<Long> ids) {
		this.ids = ids;
	}
	public boolean isStatus() {
		return status;
	}
	public void setStatus(boolean status) {
		this.status = status;
	}
	public boolean isSpecDefault() {
		return specDefault;
	}
	public void setSpecDefault(boolean specDefault) {
		this.specDefault = specDefault;
	}
}